package com.aosiding.demo.mapper;

import com.aosiding.demo.domain.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CRUDMapper {
    //获取所有用户
    List<User> getAllUser();

    //根据id获取用户信息
    User getUserById(Long id);

    //新增用户
    boolean createUser(User user);

    //根据id删除用户
    boolean deleteById(Long id);

    //根据id更改用户
    boolean updateById(User user);
}
